<?php

class Content_Form_Admin_Post_Add extends Form
{

    protected function _init()
    {

        $this -> addChild('@title', 'title', array(
            'label' => 'title',
            'require' => 1
        ));

        $this -> addChild('@title', 'alias', array(
            'label' => 'alias',
            'require' => 1
        ));

        $this -> addChild('@title', 'author', array(
            'label' => 'author',
            'require' => 1
        ));

        $this -> addChild('@radio', 'status', array(
            'label' => 'status',
            'value' => 'draft',
            'multiOptions' => array(
                'draft' => 'draft',
                'private' => 'private',
                'publish' => 'publish',
            )
        ));

        $this -> addChild('@textarea', 'summary', array('label' => 'summary'));

        $this -> addChild('@textarea', 'content', array('label' => 'content'));

        $this -> addChild('@group', 'buttons');

        $this -> buttons -> addChild('@submit') -> addChild('@cancel');

    }

}
